package com.wanshi.blog.article;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.wanshi.blog.article.mapper")
public class ArticleApplication {

    public static void main(String[] args) {

        SpringApplication.run(ArticleApplication.class,args);
    }


    /* 分页插件
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        PaginationInterceptor paginationInterceptor =
                new PaginationInterceptor();
        return paginationInterceptor;
    }

}
